From 869d899ef97039d9041087ed7493286da3e1b925 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 6 Jun 2007 20:04:18 +0000 Subject: [PATCH] Read GISTeq's mangled NMEA. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2814 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/nmea.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gpsbabel/nmea.c b/gpsbabel/nmea.c index 841f2483d..0e537a280 100644 --- a/gpsbabel/nmea.c +++ b/gpsbabel/nmea.c @@ -829,6 +829,12 @@ nmea_parse_one_line(char *ibuf) int ckval, ckcmp; char *tbuf = lrtrim(ibuf); + /* + * GISTEQ PhotoTracker (stupidly) puts a bogus field in front + * of the line. Look for it and toss it. + */ + if (0 == strncmp(tbuf, "---,", 4)) tbuf += 4; + if (*tbuf != '$') return; ck = strrchr(tbuf, '*'); -- 2.30.2